﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000C0 RID: 192
	internal class UInt32UInt64 : IUInt64Decoder
	{
		// Token: 0x060002E9 RID: 745 RVA: 0x0000BBFB File Offset: 0x00009FFB
		private UInt32UInt64()
		{
		}

		// Token: 0x060002EA RID: 746 RVA: 0x0000BC03 File Offset: 0x0000A003
		public ulong Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 5;
			return ((ulong)bytes[offset + 1] << 24) + (ulong)((long)((long)bytes[offset + 2] << 16)) + (ulong)((long)((long)bytes[offset + 3] << 8)) + (ulong)bytes[offset + 4];
		}

		// Token: 0x040000DE RID: 222
		internal static readonly IUInt64Decoder Instance = new UInt32UInt64();
	}
}
